FROM openjdk:8-jdk

ENV CONSOLE_USERNAME="admin"
ENV CONSOLE_PASSWORD="123456"
ENV ZOOKEEPER_HOSTS=""
ENV ES_HOSTS=""
ENV ES_USERNAME=""
ENV ES_PASSWORD=""
ENV MYSQL_URL=""
ENV MYSQL_USERNAME=""
ENV MYSQL_PASSWORD=""
ENV JAVA_OPTS="-XX:+ExitOnOutOfMemoryError"


USER root
WORKDIR /root
VOLUME /root/logs

ADD entrypoint.sh entrypoint.sh
ADD *.war app.war
RUN chmod 755 entrypoint.sh

ENTRYPOINT ["./entrypoint.sh"]
EXPOSE 6767
